package com.briup.jz.service;

import com.briup.jz.bean.Role;
import com.briup.jz.bean.User;
import com.briup.jz.bean.extend.UserExtend;
import com.briup.jz.utils.CustomerException;

import java.util.List;

/**
 * @program: jz
 * @description: 用户业务接口
 * @author: catmilko
 * @create: 2020-06-11 15:56
 **/

public interface IUserService {
    List<User> findAll();

    List<UserExtend> findAllEmployee();

    User findById(long id);

    void saveOrUpdate(User user);

    void deleteById(long id) throws CustomerException;

    List<UserExtend> findAllWithRole();
}
